package com.example.demo.encode;

public class RandomData {

    private String timestamp; //时间格式为：20190505152030 表示 2019年5月5日15:20：30
    private int cnt;          //交互的次数统计  第一次一般设置为0
    private String userId;      //用户的ID
    private String sessionId;    //session ID
    private String random;      //可定制的随机生成的数据 如果不使用可以设置为 ""

    public String getRandom() {
        return random;
    }

    public void setRandom(String random) {
        this.random = random;
    }

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    public int getCnt() {
        return cnt;
    }

    public void setCnt(int cnt) {
        this.cnt = cnt;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "RandomData{" +
            "timestamp='" + timestamp + '\'' +
            ", cnt=" + cnt +
            ", userId='" + userId + '\'' +
            ", sessionId='" + sessionId + '\'' +
            ", random='" + random + '\'' +
            '}';
    }
}
